package cn.zh.planmanager.application.convert;

import cn.zh.planmanager.application.bo.PlanBO;
import cn.zh.planmanager.domain.plan.model.entity.Plan;
import org.springframework.beans.BeanUtils;
import org.springframework.lang.NonNull;

/**
 * @author zh
 */
public class PlanBOConvert {

    public static PlanBO convertToBO(@NonNull Plan plan){
        PlanBO planBO = new PlanBO();
        BeanUtils.copyProperties(plan, planBO);
        return planBO;
    }
}
